Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/update_link. This invoice-level API is kept for compatibility only.
https://api.unibee.dev/merchant/invoice/external_gateway_invoice/update_payment_link
Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/update_link. This invoice-level API is kept for compatibility only.
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
| Name | Type | Required | Description |
|---|---|---|---|
externalTransactionId | string | Yes | External payment transaction id from gateway (for linking) |
gatewayId | integer | No | Optional. External gateway id; omit to keep current gateway and use it for auth |
invoiceId | string | Yes | Invoice id |
paymentLink | string | Yes | External payment/checkout url shown to user in invoice |
sendInvoice | boolean | No | Whether to (re)send invoice email after payment link is updated |
signature | string | Yes | HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex |
timestamp | integer | Yes | Request timestamp, UTC seconds, used for expiry check |
code, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.invoiceId | string | Invoice id |
data.paymentLink | string | Updated payment link |
data.status | string | Result status, e.g. success |
message | string | Human-readable message |
requestId | string | Request ID for support |
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Deprecated. Please use payment-level external gateway APIs: /merchant/payment/external_gateway_payment/update_link. This invoice-level API is kept for compatibility only.
External payment transaction id from gateway (for linking)
Invoice id
External payment/checkout url shown to user in invoice
HMAC-SHA256(gatewayKey, invoiceId|externalTransactionId|timestamp), hex
Request timestamp, UTC seconds, used for expiry check
Optional. External gateway id; omit to keep current gateway and use it for auth
Whether to (re)send invoice email after payment link is updated